//
//  YSDemoListViewController.m
//  YSKitDemo
//
//  Created by MOLBASE on 2018/8/9.
//  Copyright © 2018年 YangShen. All rights reserved.
//

#import "YSDemoListViewController.h"
#import "YSDemoItem.h"
#import "YSFontViewController.h"
#import "YSCategoriesController.h"
#import "YSDialogsViewController.h"
#import "YSPageViewController.h"
#import "YSAnimateViewController.h"
#import "YSZoomHeaderViewController.h"
#import "YSChannelViewController.h"
#import "YSCardSwichViewController.h"
#import "YSSlideMenuViewController.h"
#import "YSWaterFlowViewController.h"
#import "YSRuntimeViewController.h"
#import "YSAlertsViewController.h"
#import "YSPhotoBrowserViewController.h"
#import "YSHUDManagerViewController.h"
#import "YSSearchViewController.h"
#import "YSMovingCellViewController.h"

@interface YSDemoListViewController ()

@end

@implementation YSDemoListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"Demos";
    
    [self setupData];
    
    
    NSArray *array = @[@"123", @"深化", @{@"123":@"456",
                                        @"78":@"线上打开"
                                        }, @"千山雪"];
    NSLog(@"%@", array);
    
    NSDictionary *dict = @{@"123":@"456",
                           @"78":@"线上打开"
                           };
    NSLog(@"%@", dict);                
    
}


- (void)setupData {
    self.items = @[
                    [YSDemoItem itemWithTitle:@"字体效果"        aClass:[YSFontViewController class]],
                    [YSDemoItem itemWithTitle:@"扩展"           aClass:[YSCategoriesController class]],
                    [YSDemoItem itemWithTitle:@"弹框"           aClass:[YSDialogsViewController class]],
                    [YSDemoItem itemWithTitle:@"图片浏览器"      aClass:[YSPhotoBrowserViewController class]],
                    [YSDemoItem itemWithTitle:@"类似今日头条Page" aClass:[YSPageViewController class]],
                    [YSDemoItem itemWithTitle:@"ZoomHeader"     aClass:[YSZoomHeaderViewController class]],
                    [YSDemoItem itemWithTitle:@"ChannelView"    aClass:[YSChannelViewController class]],
                    [YSDemoItem itemWithTitle:@"CardSwich"      aClass:[YSCardSwichViewController class]],
                    [YSDemoItem itemWithTitle:@"抽屉效果"        aClass:[YSSlideMenuViewController class]],
                    [YSDemoItem itemWithTitle:@"栅格视图"        aClass:[YSWaterFlowViewController class]],
                    [YSDemoItem itemWithTitle:@"Runtime"        aClass:[YSRuntimeViewController class]],
                    [YSDemoItem itemWithTitle:@"MovingCell"        aClass:[YSMovingCellViewController class]],
//                    [YSDemoItem itemWithTitle:@"SearchVC"       aClass:[YSSearchViewController class]],
                    ].mutableCopy;
}

@end
